home *** CD-ROM | disk | FTP | other *** search
- function windchange()
- {
- var _loc1_ = this;
- a = random(5);
- if(a == 1 || wind == undefined)
- {
- wind = random(16) - 8;
- windreport = Math.abs(wind);
- if(wind == 0)
- {
- _loc1_.windmarker.gotoAndStop(2);
- windsoundplaying = 0;
- }
- else
- {
- _loc1_.windmarker._alpha = 100;
- _loc1_.windmarker.gotoAndStop(1);
- if(windsoundplaying == 0)
- {
- }
- }
- if(wind > 0)
- {
- _loc1_.windmarker.windarrow._xscale = 100;
- }
- else
- {
- _loc1_.windmarker.windarrow._xscale = -100;
- }
- }
- windamount = wind / 50;
- }
-